from django.db import models

from sportsground.utils.baseModels import BaseModels


class VenueEvaluate(BaseModels):
    class Meta():
        db_table = 'venue_evaluate'
        verbose_name = '馆场评价'
        verbose_name_plural = verbose_name

    venue = models.ForeignKey(to="Venue.Venue", on_delete=models.CASCADE, verbose_name="对应馆场")
    order = models.ForeignKey(to="User.Order", on_delete=models.CASCADE, verbose_name="对应馆场订单")
    star = models.FloatField(verbose_name="星级")
    message = models.CharField(max_length=200, verbose_name="评语")
